package com.geek.javase.ForWork;

import javax.sound.midi.Soundbank;

/**
 * @author chenshupeng
 * @date 2025/9/2
 * @desc
 * 3.乘法口诀表；（for）
 * 1*1=1
 * 1*2=2  2*2=4
 * 1*3=3  2*3=6  3*3=9
 * ....
 **/

public class Q3 {
    public static int Mutiply(int a,int b)
    {
        return a*b;
    }
    public static void main(String[] args) {
        for(int i=1;i<=9;i++)
        {
            for(int j=1;j<=i;j++)
            {
                System.out.print(i+"*"+j+"="+Mutiply(i,j));
                System.out.print("  ");
            }
            System.out.println();
        }
    }
}
